package com.qijian.maindata.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qijian.maindata.domain.InspectionPlan;
import com.qijian.maindata.domain.InspectionPlanLine;
import com.qijian.maindata.domain.query.InspectionPlanLineQuery;
import com.qijian.maindata.domain.query.InspectionPlanQuery;
import com.qijian.maindata.domain.vo.InspectionPlanLineVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 检验计划版本Mapper接口
 *
 * @author qijian
 * @date 2023-02-02
 */
public interface InspectionPlanLineMapper extends BaseMapper<InspectionPlanLine> {

    @Select("select count(0) from main_inspection_plan_line WHERE create_time >= CURRENT_DATE ")
    int countCurrentDateWithDel();

    Page<InspectionPlanLineVo> selectPageVo(Page<InspectionPlanLine> page, @Param(Constants.WRAPPER) Wrapper<InspectionPlanLineQuery> queryWrapper);
}
